_files/quote_icon.png)
Originally Posted by
RyBack
Woohoo !
I wrote something like that but error still unknown
maybe because I wrote origins after move to
If you suspect an error has occurred, you should turn developer mode and logging on by adding the following to your unnamedsoldier.cfg file:
Code:
seta logfile "3"
seta developer "1"
Then post the logs here, so we can have a look.
_files/quote_icon.png)
Originally Posted by
RyBack
ammmm but i wanna figure out how to make if statement work , I'll try using mathematical chars .
Not sure what you mean by that. Chars no less? You should figure out how to make the if statements work because they are the cornerstone of programming.
_files/quote_icon.png)
Originally Posted by
RyBack
& BTW , can I use move to in if statement too ?
You do anything you want in an if{} block. Any block of code enclosed with curly brackets represents an inner scope to the current one.
Each while/if/switch/for scope can be nested infinitely (well, theoretically, at least). In case of the if statement, the scope will only be
entered if the condition evaluates to true. You can then extend the condition with multiple else if statements and catch all remaining
conditions with a final else statement like so:
Code:
// current scope
if (!something) {
// scope A
if (!something_related) {
// scope E
}
}
else if (!something_else) {
// scope B
}
else if (some_other_thing) {
// scope C
}
else {
// scope D
}
// At this point at most 2 conditional scopes have been executed; A, B, C, D or A and E.